# Requires env variable DIST_RBAC_DIR

MAIN_DIR=${DIST_RBAC_DIR}
CLASSPATH=.:${MAIN_DIR}
SOURCEPATH=${MAIN_DIR}

all:
	$(MAKE) all -C AccessMatrix
	$(MAKE) all -C BloomFilter
	$(MAKE) all -C Cpol
	$(MAKE) all -C Generator
	$(MAKE) all -C Helper
	$(MAKE) all -C PDP_SDP
	$(MAKE) all -C RbacGraph
	$(MAKE) all -C Recycling
	$(MAKE) all -C Simulate
	$(MAKE) all -C Structures

rungen:
	java -cp ${CLASSPATH} Generator/Generator

runsim:
	java -cp ${CLASSPATH} Simulate/Simulate

clean:
	$(MAKE) clean -C AccessMatrix
	$(MAKE) clean -C BloomFilter
	$(MAKE) clean -C Cpol
	$(MAKE) clean -C Generator
	$(MAKE) clean -C Helper
	$(MAKE) clean -C PDP_SDP
	$(MAKE) clean -C RbacGraph
	$(MAKE) clean -C Recycling
	$(MAKE) clean -C Simulate
	$(MAKE) clean -C Structures
